using System;

namespace Pvp.Ecs
{
    /// <summary>
    /// 场景机关
    /// </summary>
    public class IGearUnit : IDataComponent
    {
        public bool IsOpened { get; set; }
        public bool IsDestroyed { get; set; }
        
        //机关开启触发函数
        public Func<IGearUnit,bool> GearOpenTrigger { get; set; }
        //机关ticker函数
        public Action<IGearUnit,int> GearLogicTicker { get; set; }
        //机关被销毁函数
        public Func<IGearUnit,bool> GearDestroyTrigger { get; set; }
    }
}